package net.xdclass.mapper;

import net.xdclass.model.CouponDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 孙浩
 * @since 2022-04-20
 */
public interface CouponMapper extends BaseMapper<CouponDO> {

  int reduceStock(@Param("id") Long id, @Param("stock") Integer stock);
}
